package com.summer.framework.common.config;

import org.springframework.data.redis.cache.CacheKeyPrefix;

/**
 * @auther: 杨杰
 * @date: 2019/6/12 16:50
 * @description:
 */
@FunctionalInterface
public interface MyCacheKeyPrefix {
    String compute(String var1);

    static CacheKeyPrefix simple() {
        return (name) -> {
            return name + "::";
        };
    }
}
